In interactive mode, history expansion and substitution will occur only if the expand variable is set. It is disabled using set noexpand. The default is on.
set expand
set noexpand, history, line editing